
FROM mysql:5.7


#####################################
# Set Timezone
#####################################

ARG TZ=Asia/Shanghai
ENV TZ ${TZ}
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone && chown -R mysql:root /var/lib/mysql/


#COPY conf.d/* /etc/mysql/conf.d/

RUN chmod -R 644 /etc/mysql/conf.d/*

CMD ["mysqld"]

EXPOSE 3306
